<!DOCTYPE html>
<html lang="zh-CN">
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>爱的词云</title>
  <!-- 引入Tailwind CSS -->
  <script src="https://cdn.tailwindcss.com"></script>
  <!-- 引入Font Awesome -->
  <link href="https://cdn.jsdelivr.net/npm/font-awesome@4.7.0/css/font-awesome.min.css" rel="stylesheet">

  <!-- 配置Tailwind自定义主题 -->
  <script>
    tailwind.config = {
      theme: {
        extend: {
          colors: {
            romance: {
              light: '#FDF2F8',
              DEFAULT: '#EC4899',
              dark: '#BE185D',
              purple: '#8B5CF6',
            }
          },
          fontFamily: {
            romantic: ['"Dancing Script"', 'cursive'],
          },
        }
      }
    }
  </script>

  <!-- 引入字体 -->
  <link href="https://fonts.googleapis.com/css2?family=Dancing+Script:wght@400;700&display=swap" rel="stylesheet">

  <!-- 自定义样式 -->
  <style type="text/tailwindcss">
    @layer utilities {
      .text-shadow {
        text-shadow: 0 2px 4px rgba(0,0,0,0.1);
      }
      .bg-romance-gradient {
        background: linear-gradient(135deg, #FDF2F8 0%, #F9A8D4 100%);
      }
    }
  </style>
</head>

<body class="bg-romance-light min-h-screen font-sans">
  <!-- 顶部导航 -->
  <header class="py-4 px-6 bg-white/80 backdrop-blur-sm shadow-sm sticky top-0 z-10">
    <div class="container mx-auto flex justify-between items-center">
      <h1 class="font-romantic text-2xl md:text-3xl text-romance-dark">
        <i class="fa fa-heart text-romance mr-2"></i>爱的词云
      </h1>
    </div>
  </header>

  <!-- 主要内容 -->
  <main class="container mx-auto px-4 py-12 md:py-16">
    <!-- 引言 -->
    <section class="text-center mb-12">
      <p class="font-romantic text-2xl md:text-3xl text-romance-purple mb-4">
        用词语编织我们的故事
      </p>
      <p class="text-gray-600 max-w-2xl mx-auto">
        每一个词语都是一颗星星，照亮我们共同走过的旅程
      </p>
    </section>

    <!-- 词云图 -->
    <section class="bg-white rounded-xl shadow-lg overflow-hidden mb-12 transform transition-all duration-300 hover:shadow-xl">
      <div class="p-4 md:p-8 flex justify-center">
        <img
          src="词云图.png"
          alt="爱的词云图"
          class="max-w-full h-auto rounded-lg shadow-inner transform transition-all duration-500 hover:scale-[1.02]"
        >
      </div>
    </section>

    <!-- 互动按钮 -->
    <section class="flex flex-wrap justify-center gap-4 mb-16">
      <button class="bg-romance hover:bg-romance-dark text-white px-6 py-3 rounded-full shadow-md transition-all duration-300 flex items-center">
        <i class="fa fa-download mr-2"></i>保存词云
      </button>
      <button class="bg-white border border-romance text-romance hover:bg-romance/5 px-6 py-3 rounded-full shadow-md transition-all duration-300 flex items-center">
        <i class="fa fa-share-alt mr-2"></i>分享故事
      </button>
    </section>

    <!-- 关于 -->
    <section class="bg-white/80 backdrop-blur-sm rounded-xl shadow-lg p-6 md:p-8 max-w-3xl mx-auto">
      <h2 class="font-romantic text-2xl text-romance-dark mb-4 text-center">关于这份词云</h2>
      <p class="text-gray-700 leading-relaxed text-center">
        这份词云记录了我们共同的回忆与感动，
        每一个词语都是我们爱情故事的一部分。
        愿我们继续创造更多美好的回忆，让词云不断生长。
      </p>
    </section>
  </main>

  <!-- 页脚 -->
  <footer class="bg-romance-dark text-white py-8">
    <div class="container mx-auto px-4 text-center">
      <p class="font-romantic text-xl mb-2">爱的词云</p>
      <p class="text-white/70 text-sm">
        © 2023 用词语编织我们的爱情故事
      </p>
    </div>
  </footer>

  <!-- JavaScript -->
  <script>
    // 平滑滚动
    document.querySelectorAll('a[href^="#"]').forEach(anchor => {
      anchor.addEventListener('click', function (e) {
        e.preventDefault();
        document.querySelector(this.getAttribute('href')).scrollIntoView({
          behavior: 'smooth'
        });
      });
    });
  </script>
</body>
</html>